Authentication Failure Callback

Triggers a function when the embed token has expired.

setAuthFailureCallback(callbackFunction): void
  • This function is provided as a way to register a callback to another function to handle token failures or expiration.

Example

The following initializes a new embed client for the target instance of Pyramid and sets the authentication failure callback to a separate function called "AuthFailure". If the token fails, AuthFailure will be called and can handle the process from there.

var client = new pyramidEmbedClient("https://analytics.pyramid.com");
			client.setAuthFailureCallback(AuthFailure);

function AuthFailure(){

	//do something here

}